package cn.sh.yhk.acl.vo;

import cn.sh.yhk.acl.po.RolePo;
import cn.sh.yhk.acl.po.UserPo;
import cn.sh.yhk.base.vo.PageVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.management.relation.Role;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class UserInfoVo implements Serializable {

    private Integer id;

    private String username;

//    private String password;

    private Boolean enabled;

    private Boolean accountNonExpired;

    private Boolean accountNonLocked;

    private Boolean credentialsNonExpired;

//    private String salt;

    private String email;

    private String ip;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastOperationTime;


    private List<RolePo> roleList;

    private List<PermissionVo> permissionList;


}
